package com.cdxy.biz.process.impl;

import com.cdxy.biz.process.IRechargeBizProcess;
import com.cdxy.model.dto.base.resp.BasePageResp;
import com.cdxy.model.dto.req.*;
import com.cdxy.model.dto.resp.CreateOrderResp;
import com.cdxy.model.dto.resp.OrderDetailResp;
import com.cdxy.model.dto.resp.OrderListResp;
import com.cdxy.model.dto.resp.SuccessStatusAckResp;
import com.cdxy.service.IRechargeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.Map;

/**
 * @Author: tangy
 * @Date: 2020/4/7 16:31
 */
@Service
public class RechargeBizProcessImpl implements IRechargeBizProcess {

    @Autowired
    private IRechargeService rechargeService;

    @Override
    public String aliPayNotifyScene(Map<String, String> param) {
        return rechargeService.aliPayNotifyScene(param);
    }

    @Override
    public String aliPayNotifyHotel(Map<String, String> param) {
        return rechargeService.aliPayNotifyHotel(param);
    }

    @Override
    public void cancelOrder(CancelOrderReq cancelOrderReq) {
        rechargeService.cancelOrder(cancelOrderReq);
    }

    @Override
    public CreateOrderResp createSceneOrder(SceneOrderReq sceneOrderReq) {
        return rechargeService.createSceneOrder(sceneOrderReq);
    }

    @Override
    public CreateOrderResp continueOrder(ContinueOrderReq continueOrderReq) {
        return rechargeService.continueOrder(continueOrderReq);
    }

    @Override
    public CreateOrderResp createHotelOrder(SceneOrderReq sceneOrderReq) {
        return rechargeService.createHotelOrder(sceneOrderReq);
    }

    @Override
    public SuccessStatusAckResp sceneSuccessAck(SceneSuccessAckReq successAckReq) {
        return rechargeService.sceneSuccessAck(successAckReq);
    }

    @Override
    public SuccessStatusAckResp hotelSuccessAck(SceneSuccessAckReq successAckReq) {
        return rechargeService.hotelSuccessAck(successAckReq);
    }

    @Override
    public BasePageResp<OrderListResp> orderList(OrderListReq orderListReq) {
        return rechargeService.orderList(orderListReq);
    }

    @Override
    public OrderDetailResp orderDetail(OrderDetailReq orderDetailReq) {
        return rechargeService.orderDetail(orderDetailReq);
    }

    @Override
    public void payValidTime() {
        rechargeService.payValidTime();
    }
}
